# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ovos-gui
pkgver=0.0.3_alpha5
pkgrel=1
pkgdesc="ovos-core metapackage for gui daemon"
url="https://github.com/OpenVoiceOS/ovos-gui"
arch="noarch"
license="Apache-2.0"
depends="
	py3-ovos-bus-client
	py3-ovos-config
	py3-ovos-plugin-manager
	py3-ovos-utils
	py3-tornado
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-gui/archive/refs/tags/V${pkgver//_alpha/a}.tar.gz"
builddir=$srcdir/ovos-gui-${pkgver//_alpha/a}

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
1cb8ceba3ad53dfde671b492a76bd3b3d24560a598fccc80d8254dde35e7d8b2b9446cdd56b1e8042c72695841af83a5bd7b3ee121a387f0a89213719b431ebb  ovos-gui-0.0.3_alpha5.tar.gz
"
